
#主动技能【豪火球之术】
execute as @a[tag=zzsn,scores={skSnowball=1..}] at @s run function nw:yingxiong/1yingxiong/02zuozhu/skill/3haohuoqiu
#主动技能【豪火球之术】CD
execute as @a[tag=zzsn,scores={skCDSnowball=0}] at @s run function nw:yingxiong/1yingxiong/02zuozhu/skill/3haohuoqiu_cd
#主动技能【豪火球之术】伤害与特效
execute as @e[type=armor_stand,tag=HaoHuoQiu1,scores={skTimeKe=4..}] at @s run function nw:yingxiong/1yingxiong/02zuozhu/skill/3haohuoqiu1
execute as @e[type=armor_stand,tag=HaoHuoQiu2,scores={skTimeKe=6..}] at @s run function nw:yingxiong/1yingxiong/02zuozhu/skill/3haohuoqiu2
execute as @e[type=armor_stand,tag=HaoHuoQiu3,scores={skTimeKe=8..}] at @s run function nw:yingxiong/1yingxiong/02zuozhu/skill/3haohuoqiu3


#主动技能【写轮眼】
execute as @a[tag=zzsn,scores={skPearl=1}] at @s run function nw:yingxiong/1yingxiong/02zuozhu/skill/1xielunyan1
#主动技能【写轮眼】二段：落地触发
execute as @a[tag=zzsn,scores={skPearl=2}] at @s unless block ~ ~-0.5 ~ #minecraft:air run function nw:yingxiong/1yingxiong/02zuozhu/skill/1xielunyan2
#主动技能【写轮眼】三段：后置技能：【千鸟】
execute as @a[tag=zzsn,scores={skPlayer=1,skIron_sword0=1..}] at @s run function nw:yingxiong/1yingxiong/02zuozhu/skill/2qianniao1
scoreboard players reset @a[tag=zzsn,scores={skIron_sword0=1..}] skIron_sword0
#主动技能【千鸟】音效与特效
execute at @a[tag=zzsn,scores={skPlayer=1},nbt={ActiveEffects:[{Id:1b,Amplifier:2b}]}] run particle spit ~ ~0.5 ~ 0 0 0 0.01 5 normal @a
execute as @a[tag=zzsn,scores={skPlayer=1}] unless entity @s[nbt={ActiveEffects:[{Id:1b,Amplifier:2b}]}] run scoreboard players set @s skPlayer 0
#主动技能【天之咒印】
execute as @a[tag=zzsn,scores={skJPG=1..,skCDJPG=-1}] at @s run function nw:yingxiong/1yingxiong/02zuozhu/skill/1tianzhizhouyin
scoreboard players reset @a[tag=zzsn,scores={skJPG=1..,skCDJPG=0..}] skJPG
#主动技能【天之咒印】二段：恢复胸甲
execute as @a[tag=zzsn] unless entity @s[nbt={ActiveEffects:[{Id:8b,Amplifier:3b}]}] run item replace entity @s[nbt=!{Inventory:[{id:"minecraft:leather_chestplate",tag:{Tags:["zuozhu"]}}]}] armor.chest with minecraft:leather_chestplate{Tags:[zuozhu],Unbreakable: 1, Enchantments: [{id: "minecraft:protection", lvl: 3}, {id: "minecraft:blast_protection", lvl: 3}, {id: "minecraft:feather_falling", lvl: 2}, {id: "minecraft:binding_curse", lvl: 1}], display: {color: 1001942}} 1

#主动技能【写轮眼/天之咒印】CD
execute as @a[tag=zzsn,scores={skCDJPG=0}] at @s run function nw:yingxiong/1yingxiong/02zuozhu/skill/1xielunyan_cd

execute as @a[tag=zzsn] run title @s actionbar [{"text":"豪火球之术","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDSnowball","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 写轮眼/天之咒印","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDJPG","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]

